@(title: String, css: Html = Html(""), scripts: Html = Html(""))(content: Html)

@import be.objectify.deadbolt.core.utils.TemplateUtils._
@import be.objectify.deadbolt.java.views.html._
@import play.i18n._
<!DOCTYPE html>
<html lang="@lang().code()">
	<head>
		<title>@title :: @play.Play.application.configuration().getString("application.name")</title>
		
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<meta name="description" content="ZenS Test Automation Console - Great software starts here" />
		<meta name="author" content="ZenS Development Team" />
		
		<link rel="stylesheet" type="text/css" href="@routes.Assets.at("css/bootstrap.min.css")" />
		<link rel="stylesheet" type="text/css" href="@routes.Assets.at("css/main.min.css")" />
		@css
		<!--link rel="shortcut icon" type="image/png" href="@routes.Assets.at("img/favicon.png")"-->
	</head>
	<body>
		<div id="container" class="container clearfix">
			<div id="header" class="clearfix">
				<a href="@routes.Application.index()">
					<h1 id="page-logotype" class="pull-left">@title</h1>
				</a>
				<div id="user-info" class="pull-right">
					@subjectPresentOr() {
						@defining(Application.getLocalUser(session())) { user =>
							@Messages.get("view.main.loggedinas.label") @user.getEmail() &raquo; <a href="@com.feth.play.module.pa.controllers.routes.Authenticate.logout()">@Messages.get("view.main.logout.label")</a>
						}
					}{
						@Messages.get("view.main.notloggedin.label") &raquo; <a href="@routes.Application.login()">@Messages.get("view.main.login.label")</a>
					}
				</div>
			</div>
			<div id="content" class="clearfix">
				<div id="content-header">
					<a href="@controllers.routes.Application.index()">@Messages.get("view.main.header.label")</a> &raquo; @title
				</div>
				<div id="content-main-wrapper" class="clearfix">
					<div id="panel-left">
						<div id="navigation-left">
	                        <ul>
	                            <li><a href="@routes.Projects.listProjects()" title="Projects">@Messages.get("view.main.menu.left.projects")</a></li>
	                            <li><a href="@routes.Configurations.listConfigs()" title="Configurations">@Messages.get("view.main.menu.left.configurations")</a></li>
	                            <li><a href="@routes.TestResources.listResources()" title="Resources">@Messages.get("view.main.menu.left.resources")</a></li>
	                            <li><a href="@routes.Reports.listReports()" title="Reports">@Messages.get("view.main.menu.left.reports")</a></li>
	                            <li><a href="@routes.Settings.listSettings()" title="Settings">@Messages.get("view.main.menu.left.settings")</a></li>
	                        </ul>
						</div>
					</div>
					
					<div id="main">
						<div id="main-content">
							@if(flash.contains(Application.FLASH_ERROR_KEY)) {
								<div class="alert alert-error">
									@flash().get(Application.FLASH_ERROR_KEY)
								</div>
							}
							@if(flash.contains(Application.FLASH_SUCCESS_KEY)) {
								<div class="alert alert-success">
									@flash().get(Application.FLASH_SUCCESS_KEY)
								</div>
							}
						
							@content
						</div>
					</div>
				</div>
			</div>
			<div id="footer" class="clearfix">
				@views.html.footer()
			</div>
		</div>
		<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
		<script type="text/javascript">window.jQuery || document.write('<script src="@routes.Assets.at("js/jquery.min.js")"><\/script>')</script>
		<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
		<script type="text/javascript">window.jQuery.ui || document.write('<script src="@routes.Assets.at("js/jquery-ui.min.js")"><\/script>')</script>
		<script type="text/javascript" src="@routes.Application.javaScriptRoutes()"></script>
		<script type="text/javascript" src="@routes.Application.javaScriptMessages()"></script>
		<script type="text/javascript" src="@routes.Assets.at("js/bootstrap.min.js")"></script>
		<script type="text/javascript" src="@routes.Assets.at("js/plugins.js")"></script>
		<script type="text/javascript" src="@routes.Assets.at("js/zens.tests.js")"></script>
		@scripts
	</body>
</html>
